import { t } from 'elysia'
import { ElysiaApp } from '../../index'
import { IndexPage ,HomePage} from './pages/index'
import { PostDetail } from './pages/post-detail'
import { About } from './pages/about'
import { Tags } from './pages/tags'


export default (app: ElysiaApp) =>
  app.get(
    '/',  () => { 
      return HomePage()
    }) 
    .get(
      '/post-detail',   () => { 
        return PostDetail()
    }) 
    .get(
      '/about',   () => { 
        return About()
    }) 
    .get('/tags', () => { 
      return Tags()
    })